import api from "./api"
import axios from "../../../axios";

// 图书馆分类
export const librarylistQuery = () => {
  return axios({
    method: "get",
    url: api.book.librarylist,
    headers: {
      "Authorization": window.localStorage.getItem('token')
    }
  })
}

// 图书馆分类详情
export const librarylistidQuery = (params) => {
  return axios({
    method: "get",
    url: api.book.all,
    params,
    headers: {
      "Authorization": window.localStorage.getItem('token')
    }
  })
}

// 图书馆分类详情
export const librarycontentQuery = (params) => {
  return axios({
    method: "get",
    url: api.book.content,
    params,
    headers: {
      "Authorization": window.localStorage.getItem('token')
    }
  })
}